package com.slife.snap.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName pd_serialportinfo
 */
@TableName(value ="pd_serialportinfo")
public class PdSerialportinfo implements Serializable {
    /**
     * 
     */
    @TableId
    private Long id;
    private Double weight;

    /**
     * 
     */
    private Date metertime;

    @TableField(exist = false)
    private String msgType;


    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Double getWeight() {
        return weight;
    }

    /**
     * 
     */
    public void setWeight(Double weight) {
        this.weight = weight;
    }

    /**
     * 
     */
    public Date getMetertime() {
        return metertime;
    }

    /**
     * 
     */
    public void setMetertime(Date metertime) {
        this.metertime = metertime;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getMsgType() {
        return msgType;
    }

    public void setMsgType(String msgType) {
        this.msgType = msgType;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", weight=").append(weight);
        sb.append(", metertime=").append(metertime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}